package service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import dao.BookDao;
import pojo.Book;
import service.BookManager;
@Service
public class BookManagerImpl implements BookManager {
	@Autowired
	private BookDao bd;
	@Override
	public void addBook(Book b) {
		bd.addBook(b);

	}

	@Override
	public List<Book> findAllBooks() {
		return bd.findAllBooks();
	}

	@Override
	public void deleteBook(int id) {
		bd.deleteBook(id);

	}

}
